#include "DropAbilityVisitor.h"
#include <stdio.h>


DropAbilityVisitor::DropAbilityVisitor(): found(false),droppableInterface(0)
{
}

DropAbilityVisitor::~DropAbilityVisitor()
{
}

void DropAbilityVisitor::Visit(DropAbility& ability)
{
	found = true;
	droppableInterface = ability.DroppableInterface();
}

bool DropAbilityVisitor::FoundAbility() const
{
	return found;
}

Droppable* DropAbilityVisitor::DroppableInterface() const
{
	return droppableInterface;
}

void DropAbilityVisitor::Clear()
{
	found = false;
	droppableInterface = 0;
}

